package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.OrderSum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    void insetBatch(List<OrderDetail> orderDetails);


    @Select("SELECT * FROM order_detail WHERE  order_id=#{ordersId}")
    List<OrderDetail> selectByOrderId(Long ordersId);


    List<OrderSum> getNameSumNumberByOrderId(List<Long> orderIdList);
}
